package strings;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

import static com.cody.util.Print.*;

/**
 * Created by cody on 16/1/13.
 */
public class Finding {

    public static void main(String[] args) {
        Matcher matcher = Pattern.compile("\\w+")
                .matcher("Evening is full of the linnet's wings");
        while (matcher.find()) {
            printb(matcher.group() + " ");
        }
        print();
        print("=====================================================");
        int i = 0;
        while (matcher.find(i)) {
            printb(matcher.group() + " ");
            ++i;
        }
    }

}
